#include "tcp_server.hpp"
#include "Handler.hpp"

int main(int argc,char* argv[])
{
    if(argc!=2)
    {
        cout<<"Usage:\n\t"<<"tco_server port"<<endl;
        return 1;
    }
    uint16_t port=atoi(argv[1]);

    TcpServer ser(port);
    ser.InitTcpServer();
    ser.Loop(HandlerSock_V4);
    return 0;
}